package com.whfc.emp.service;


import com.whfc.emp.entity.ApprovalRecord;
import com.whfc.entity.dto.Apply.rep.EntryAuditRep;

import java.util.List;

public interface ApprovalRecordService  {

    int insertApprovalRecord(ApprovalRecord approvalRecord);

    ApprovalRecord getApprovalRecordById(Integer id);

    ApprovalRecord getByApplicationIdAndApproverId(Integer applicationId, Integer approverId);

    int updateApprovalRecord(ApprovalRecord approvalRecord);

    int deleteApprovalRecordById(Integer id);

    List<EntryAuditRep> entryReview(List<Integer> pidList,Integer userId);

    List<ApprovalRecord> getParentNode(Integer approverType,Integer applicationId);

    List<ApprovalRecord> selectRecordByApplyIdAndAuditType(Integer applicationId,Integer reviewType);

    List<ApprovalRecord> selectByApproverId(Integer approverId);
}